﻿using configFileAction;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace myAutoExcuteJobService
{
    public static class GV
    {
       // public static string form = "server=127.0.0.1;database=Edoc2.Form;user id=sa;pwd=sa;";
       // public static string org = "server=127.0.0.1;database=Macrowing.Organization;user id=sa;pwd=sa;";
       //// public static string form = "server=172.21.98.166;database=Edoc2.Form;user id=sa;pwd=edoc2@bj;";
       //// public static string org = "server=172.21.98.166;database=Macrowing.Organization;user id=sa;pwd=edoc2@bj;";
       // public static string SqlServerDBConstring = "server=127.0.0.1;database=Edoc2.Form;user id=sa;pwd=sa;";
       // public static string backInfo = "";
       // // public static string SqlServerDBConstring = "server=139.129.194.250;database=Edoc2.Form;user id=sa;pwd=Lhong1019;";
     
        
        public static string Blog;
        public static string org;

        //合同同步状态stata
        public static string RTSOC = "open";
        public  struct emailInfo 
        {
            public string emailAcount;
            public string emailPassword;
            public string smtp;
            public string port;
        }
        public static emailInfo emailInformation;
        public static string timer_time;
        public static  void setGvByXml() 
        {
            try
            {
                Blog = xmlAction.getxmlValue("Config.xml", "root-DBinfo-Blog");
                org = xmlAction.getxmlValue("Config.xml", "root-DBinfo-form");
                emailInformation.emailAcount = xmlAction.getxmlValue("Config.xml", "root-emailInformation-emailAcount");
                emailInformation.emailPassword = xmlAction.getxmlValue("Config.xml", "root-emailInformation-emailPassword");
                emailInformation.smtp = xmlAction.getxmlValue("Config.xml", "root-emailInformation-smtp");
                emailInformation.port = xmlAction.getxmlValue("Config.xml", "root-emailInformation-port");

                timer_time = xmlAction.getxmlValue("Config.xml", "root-timer_time");
            }
            catch (Exception ex) { }
        }



    }
}
